import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      // 登录页面
      path: '/',
      name: 'login',
      component: ()=>import('@/views/Login.vue'),
    },
    {
      // 首页/数据总览
      path: '/dashboard',
      name: 'dashboard',
      component: ()=>import('@/views/Dashboard.vue'),
      children:[
        {
          path: 'a',
          component: ()=>import('@/views/a.vue'),
        },
        {
          path: 'b',
          component: ()=>import('@/views/b.vue'),
        },
        {
          // 数据仪表盘
          path: 'DashboardPage',
          component: ()=>import('@/views/DashboardPage.vue'),
        },
        {
          // 快捷操作面板
          path: 'QuickActionsPanel',
          component: ()=>import('@/views/QuickActionsPanel.vue'),
        },
        {
          // 用户列表展示
          path: 'UserListPage',
          component: ()=>import('@/views/UserListPage.vue'),
        },
        {
          // 用户详情/编辑
          path: 'UserDetailPage',
          component: ()=>import('@/views/UserDetailPage.vue'),
        },
        {
          // 角色权限配置
          path: 'RolePermissionManagement',
          component: ()=>import('@/views/RolePermissionManagement.vue'),
        },
        {
          // 组织架构管理
          path: 'DepartmentManagement',
          component: ()=>import('@/views/DepartmentManagement.vue'),
        },
        {
          // 文章/新闻管理
          path: 'ArticleManagement',
          component: ()=>import('@/views/ArticleManagement.vue'),
        },
        {
          // 分类标签管理
          path: 'CategoryTagManagement',
          component: ()=>import('@/views/CategoryTagManagement.vue'),
        },
        {
          // 评论审核
          path: 'CommentModeration',
          component: ()=>import('@/views/CommentModeration.vue'),
        },
        {
          // 系统基础配置
          path: 'BasicSettings',
          component: ()=>import('@/views/BasicSettings.vue'),
        },
        {
          // 导航菜单配置
          path: 'MenuConfiguration',
          component: ()=>import('@/views/MenuConfiguration.vue'),
        },
        {
          // 系统日志查看
          path: 'SystemLogs',
          component: ()=>import('@/views/SystemLogs.vue'),
        },
        {
          // 数据备份恢复
          path: 'BackupRestore',
          component: ()=>import('@/views/BackupRestore.vue'),
        },
        {
          // 访问量统计
          path: 'VisitorStatistics',
          component: ()=>import('@/views/VisitorStatistics.vue'),
        },
        {
          // 用户行为分析
          path: 'UserBehaviorAnalytics',
          component: ()=>import('@/views/UserBehaviorAnalytics.vue'),
        },
        {
          // 业务数据报表
          path: 'BusinessReports',
          component: ()=>import('@/views/BusinessReports.vue'),
        },
      ]
    },
    
  ],
})

export default router
